﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ES.Migrate
{
    public class OnUpdateProgressEventArgs<T>
    {
        public T UserState { get; set; }

        public decimal Rate { get; set; }

        public OnUpdateProgressEventArgs(T userState, decimal rate)
        {
            this.UserState = userState;
            this.Rate = (rate >= 1 ? 0.990m : rate);
        }
    }
}
